xen: arm: enable sync console in machine_reboot.
authorIan Campbell <ian.campbell@citrix.com>
Thu, 15 Jan 2015 11:22:27 +0000 (11:22 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 27 Jan 2015 16:47:02 +0000 (16:47 +0000)
Otherwise the last thing printed is "(XE" or something.

In line with x86 also disable the watchdog and spin debugging.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Julien Grall <julien.grall@linaro.org>
xen/arch/arm/shutdown.c

index 4988b03fc47dd8c752fd6293017e4e71659fcfd6..e53ec975bfd3c08c1d44e4e5ce284d1a4cef1d8b 100644 (file)
@@ -38,6 +38,10 @@ void machine_restart(unsigned int delay_millisecs)
 {
     int timeout = 10;
 
+    watchdog_disable();
+    console_start_sync();
+    spin_debug_disable();
+
     local_irq_enable();
     smp_call_function(halt_this_cpu, NULL, 0);
     local_irq_disable();